import Vue from 'vue'
import App from './App.vue'
import TypeNav from './components/TypeNav'
import Carousel from './components/Carousel'
import Pagination from './components/Pagination'
import router from './router'
import store from './store'

Vue.component(TypeNav.name,TypeNav)
Vue.component(Carousel.name,Carousel)
Vue.component(Pagination.name,Pagination)
Vue.config.productionTip = false
// Vue.prototype.$bus = new Vue()
import './mock/mockServe'
import "swiper/css/swiper.css"
import VueLazyload from 'vue-lazyload'
import atm from './assets/1.gif'

Vue.use(VueLazyload,{
  loading:atm
})

// import {reqGetSearchInfo} from './api/index'
// console.log(reqGetSearchInfo({}));
new Vue({
  render: h => h(App),
  beforeCreate(){
    Vue.prototype.$bus=this;
  },
  router,
  store
}).$mount('#app')
